package com.ziyun.pop.modules.storeMaterials.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ziyun.pop.modules.purchase.entity.dto.StorePurchaseApplyDto;
import com.ziyun.pop.modules.storeMaterials.entity.dto.StoreMaterialInDto;
import io.renren.common.utils.PageUtils;
import com.ziyun.pop.modules.storeMaterials.entity.StoreMaterialInEntity;
import io.renren.common.utils.R;
import io.renren.modules.sys.entity.SysUserEntity;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 门店耗材入库表
 *
 * @author guizhao
 * @email 296588519@qq.com
 * @date 2018-10-04 10:03:15
 */
public interface StoreMaterialInService extends IService<StoreMaterialInEntity> {

    PageUtils queryPage(Map<String, Object> params);

    R queryInDetial(Map<String,Object> params);

    R saveIn(StoreMaterialInDto storeMaterialInDto);

    R audit(Integer id);

    R reject(Integer id);

    List<StoreMaterialInEntity> getStoreMaterialList(String inNo);


    List<StoreMaterialInEntity> getStoreMaterialListByState(String inNo,Integer EnumType);

    List<StoreMaterialInEntity> getStoreMaterialListByEnumTypes(String inNo,Integer EnumTypes);

    List<StoreMaterialInEntity> getStoreMaterialListByStateNoState(String inNo,Integer EnumTypeS);

    BigDecimal getTotalMoney(String inNo);

    R inventory(StorePurchaseApplyDto storePurchaseApplyDto,SysUserEntity userEntity);

    Integer getStockByInId(Integer inId);

    StoreMaterialInEntity getInfoData(Integer inId);

    String getInNoByinId(Integer inId);


    // 查询已经入库并且审核了
    List<StoreMaterialInEntity>getAlreadyInAndState(String inNo);

    R editOtherAccessory(Integer inId, String ids);
}

